package com.cy.jt.Test;

import com.cy.jt.mapper.UserMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;
import java.util.Map;


@SpringBootTest
public class userTest {
    @Autowired
    private UserMapper userMapper;

    @Test
    void userTests(){
        Map<String,Object> map= userMapper.selectUserByUsername("user");
        System.out.println(map);

        List<String> list = userMapper.qeruyUserPermissions(1);
        System.out.println(String.valueOf(list));
        System.out.println(list.toArray(new String[]{}));
    }
}
